<?php

require_once('facebook.php');

$facebook = new Facebook("87c749ab2b66ec2c60f542d13647555c","a9502b949632873d575cb6242eb4d525");

$fb_user = $facebook->require_login();

$q=$_GET["q"];

$fields = array('pic_square');

$info = $facebook->api_client->users_getInfo($q, $fields);

$pic = $info[0]['pic_square'];
echo $pic;

?>

